package com.feel.service;

import com.feel.exception.SteduException;
import com.feel.pojo.Department;

import java.util.List;
import java.util.Map;

/**
 * @Author: 刘永钦
 * @Date: 2024-09-03-14:10
 * @Description:
 */
public interface DepartmentService {
//    获得所有的部门
    List<Department> getAll();
//    新增部门
    Boolean addInfo(Department department) throws SteduException;
//    删除部门
    Boolean delInfo(Integer id) throws SteduException;
//    修改部门
    Boolean updateInfo(Department department) throws SteduException;
//    通过id查询
    Department getByID(Integer id);
//    获得部门人员分配情况，用于图标的显示
    List<Map<String, Object>> getDepartmentEcharts();
    // 修改部门负责人
    Boolean updateAdmin(Integer oldId, Integer userId) throws SteduException;
}
